<?php


namespace app\bufenli\controller;
use think\facade\View;

class Index
{
    public function index(){
        $a=1;
        View::assign('a',$a);
        $arr=[1,2,3];
        View::assign('arr',$arr);
        return View::fetch();
    }
    public function ajax(){
        $arr=['code'=>200,'msg'=>'success'];
        return json_encode($arr);
    }
    public function test(){
//        echo 1;
        return View::fetch();
    }

}